package net.vinote.smart.platform.module.alarm;

import java.util.logging.Level;

import net.vinote.smart.platform.module.log.RunLogger;


/**
 * @author Seer
 *
 */
public class Alarm {
	private static final RunLogger logger = RunLogger.getLogger();

	/**
	 * 事件告警
	 * 
	 * @param alarm
	 */
	public static void alarm(EventAlarm alarm) {
		alarm(alarm, null);
	}

	/**
	 * 事件告警
	 * 
	 * @param alarm
	 * @param message
	 */
	public static void alarm(EventAlarm alarm, String message) {
		logger.log(Level.SEVERE, alarm.toString()
				+ (message == null ? "" : ("[message:" + message) + "]"));
	}

	/**
	 * 故障告警
	 * 
	 * @param alarm
	 */
	public static void alarm(FaultAlarm alarm) {

	}

	/**
	 * 故障恢复告警
	 * 
	 * @param alarm
	 */
	public static void recoverAlarm(FaultAlarm alarm) {

	}
}
